-- GENERATED SPELL FOR [Suffering Soul Fragment] --


function spell0_23399(pUnit, Event) --@Soul Blast,n/a--
pUnit:FullCastSpellOnTarget(41245,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23399', 2000, 1)
end

function Sorts_23399(pUnit, Event)
local choix_sorts_23399 = math.random(0, 0)
if choix_sorts_23399 == 0 then
pUnit:RegisterEvent('spell0_23399', 1, 1)
end
end

function mob23399_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23399', math.random(1500, 3000), 1)
end

function mob23399_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23399_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23399_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23399, 1, 'mob23399_Action')
RegisterUnitEvent(23399, 2, 'mob23399_Leave')
RegisterUnitEvent(23399, 3, 'mob23399_Kill')
RegisterUnitEvent(23399, 4, 'mob23399_Die')
